package com.summer.core.container;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dlc
 * CreateTime 2006-2-12
 * TODO 记录用户在某个模块中的，某些细节
 */
public class UserContext {

	private Map map;
	
	public UserContext() {
		map = new HashMap();
	}
	
	public UserContextDetail getDetail(String key) {
		return (UserContextDetail) map.get(key);
	}
	
	public void setDetail(String key,UserContextDetail detail) {
		map.put(key,detail);
	}
	
	public void cleanUp() {
		this.map.clear();
		this.map = null;
	}
	
	public void removeDetail(String key) {
	    map.remove(key);
	}
}